<template>
  <div class="house-container" v-if="itemInfo">
    <div class="item">
      <div class="item-left">
        <img :src="itemInfo.headImgUrl || require('@/assets/img/dynamics/palceholder-img.png')" alt="" class='img'>
        <ul class="item-right">
          <li class="linker-name ellipsis">{{ itemInfo.linkerName }}</li>
          <li class="browse-time">浏览次数：{{ itemInfo.browsCount }}次</li>
          <li class="browse-time">{{ itemInfo.attentionTime | dateFormatterToHuman }}</li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    itemInfo: {
      type: Object
    }
  }
}
</script>
<style lang="less" scoped>
.house-container {
  width: 100%;
  background: #fff;
  .item {
    display: flex;
    flex-direction: column;
    padding-bottom: 17px;
    padding-top: 16px;
    margin: 0 !important;
    box-shadow: inset 0px -1px 1px -1px #ddd;
    .item-left {
      display: flex;
      position: relative;
      .img {
        width: 100px;
        height: 75px;
        border-radius: 6px;
        margin-right: 12px;
        position: relative;
        text-align: center;
        line-height: 90px;
      }
      .item-right {
        width: 210px;
        font-size: 14px;
        font-family: PingFangSC-Medium;
        font-weight: 400;
        color: rgba(68, 81, 102, 1);
        .linker-name {
          line-height: 26px;
          font-size: 18px;
          font-family: PingFangSC-Semibold;
          font-weight: 600;
          color: #405170;
        }
        .browse-time {
          line-height: 16px;
          font-size: 12px;
          padding-top: 6px;
        }
        .ellipsis {
          overflow: hidden;
          text-overflow: ellipsis;
          -o-text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }
  }
}
</style>
